// 此文件用于配置动态路由

// import BasicLayout from '@/layout/basic-layout.vue';

import BasicLayout from '../layout/basic-layout.vue'

import DashboardConsole from '@/views/dashboard/console/index.vue';
import DashboardMonitor from '@/views/dashboard/monitor/index.vue';
import DashboardWorkplace from '@/views/dashboard/workplace/index.vue';

import SystemMenu from '@/views/system/menu/index.vue';
import SystemUser from '@/views/system/user/index.vue';
import SystemRole from '@/views/system/role/index.vue';


export default [
    {
        path:'/dashboard',
        name: 'dashboard',
        label: 'Dashboard',
        component: BasicLayout,
        children:[
            {
                path:'console',
                name:'dashboard_console',
                label: '主控台',
                component: DashboardConsole,
            },
            {
                path:'monitor',
                name:'dashboard_monitor',
                label:'监控页',
                component: DashboardMonitor,
            },
            {
                path:'workplace',
                name:'dashboard_workplace',
                label:'工作台',
                component: DashboardWorkplace,
            }
        ]
    },
    {
        path:'/system',
        name: 'system',
        component: BasicLayout,
        label:'系统管理',
        children:[
            {
                path:'user',
                name:'system_user',
                label:'用户管理',
                component: SystemUser,
            },
            {
                path:'menu',
                name:'system_menu',
                label:'菜单管理',
                component: SystemMenu,
            },
            {
                path:'role',
                name:'system_role',
                label:'角色管理',
                component: SystemRole,
            }
        ]
    }
]